#include "krpc/netserver.h"
#include "krpc/service.h"

int main(void)
{
	using namespace KRPC;
	LSS server("msgcenter");
	Service service(server);
	service.bind("publish", [&](std::string topic, std::string data){
		service.publish(std::move(topic), std::move(data));
	});
	service.run();
}
